
import { createRouter,createWebHistory,createWebHashHistory } from "vue-router";
import Home from '../components/OHome.vue'
import Context from '../components/content.vue'
import NotFound from "../components/NotFound.vue";
const routes = [
    {
        path:'/',
        name:'Home',
        component: Home,
         
    },
    {
        path:'/list',
        name:'list',
        component: Home,
        // props: route => ({query : route.q})
    },
    {
        path:'/context',
        name:'Context',
        component: Context
    },
    {
        path:'/:pathMatch(.*)*',
        component: NotFound
    }
]
var router = createRouter({
    // history: createWebHistory(),
    history: createWebHashHistory(),
    routes:routes,
})


export default router;